home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #5 & #6 / Amiga Plus CD - 1995 - No. 5 and 6.iso / pd / datatypes / c / test / test.c next >
C/C++ Source or Header  |  1995-07-08  |  1KB  |  71 lines

  1. /*
  2. ** $PROJECT: c.datatype
  3. **
  4. ** $VER: test.c 39.2 (28.06.95)
  5. **
  6. ** by
  7. **
  8. ** Stefan Ruppert , Windthorststraße 5 , 65439 Flörsheim , GERMANY
  9. **
  10. ** (C) Copyright 1995
  11. ** All Rights Reserved !
  12. **
  13. ** $HISTORY:
  14. **
  15. ** 28.06.95 : 039.002 : added V39.11 fixed errors
  16. ** 28.04.95 : 039.001 : initial
  17. */
  18.  
  19. /* This file contains parts, which produced parse errors in version 39.6 and
  20.  * before.
  21.  */
  22.  
  23. /* if comment was mark as TEXT (c.prefs), the comment line wasn't wrapped
  24.  *
  25.  * Reported from Swen Stullich
  26.  */
  27.  
  28. void test(void)
  29. {
  30.     int a;
  31. // int b;
  32.     int c;
  33.  
  34.     return;
  35. }
  36.  
  37. /* a backslash at the end of a line in a string to continue the string wasn't
  38.  * handled correctly !
  39.  *
  40.  * Reported from Klaus A Seistrup.
  41.  */
  42.  
  43. static char string[] = "\
  44. This is a test\n\
  45. Ok\n";
  46.  
  47. /* a backslash at the end of a line wasn't handled correctly
  48.  *
  49.  * Reported from Jens Toivo Berger Thielemann
  50.  */
  51.  
  52.  
  53. static char string[] = "This is a second test\n" \    /* test */
  54.                               "with two three lines\n" \
  55.                               "Ok\n";
  56.  
  57. /* Errors before V39.11 */
  58.  
  59. /* a C++ comment followed by a cpp keyword produced a parse error
  60.  *
  61.  * Reported from Timo C. Nentwig.
  62.  */
  63.  
  64. #include <test1.h>      // C++ comment
  65. #include <test2.h>
  66.  
  67. /* tabs in a string weren't handled correctly
  68.  */
  69.  
  70. char *test = "Tabs        String    Test";
  71.